body {
  /* 基础样式重置 */
  /* 面包屑导航 */
  /* 主要内容区布局 */
  /* 目录页面样式 */
  .breadcrumb {
      padding: 15px 0;
      font-size: 14px;
      color: #666;
  }
  
  .breadcrumb a {
      color: #666;
      text-decoration: none;
  }
  
  .breadcrumb a:hover {
      color: #ff6700;
  }
  
  .breadcrumb i {
      margin: 0 8px;
      font-size: 12px;
  }
  
  .catalog-content {
      display: flex;
      margin-bottom: 30px;
  }
  
  /* 左侧分类导航 */
  .catalog-sidebar {
      width: 240px;
      background-color: #fff;
      border-radius: 4px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      margin-right: 20px;
  }
  
  .sidebar-title {
      padding: 15px;
      font-size: 16px;
      font-weight: bold;
      border-bottom: 1px solid #eee;
  }
  
  .sidebar-title i {
      margin-right: 8px;
  }
  
  .category-list {
      list-style: none;
      padding: 0;
      margin: 0;
  }
  
  .category-item {
      border-bottom: 1px solid #f5f5f5;
  }
  
  .category-item a {
      display: block;
      padding: 12px 15px;
      color: #333;
      text-decoration: none;
      transition: all 0.3s;
  }
  
  .category-item a:hover,
  .category-item.active a {
      color: #ff6700;
      background-color: #f9f9f9;
  }
  
  .category-item i {
      margin-right: 8px;
      width: 16px;
      text-align: center;
  }
  
  .subcategory-list {
      list-style: none;
      padding: 0;
      margin: 0;
      background-color: #f9f9f9;
  }
  
  .subcategory-item a {
      padding: 10px 15px 10px 35px;
      font-size: 14px;
  }
  
  /* 右侧商品区域 */
  .catalog-main {
      flex: 1;
      background-color: #fff;
      border-radius: 4px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      padding: 20px;
  }
  
  /* 筛选区域 */
  .filter-area {
      margin-bottom: 20px;
  }
  
  .filter-item {
      display: flex;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px dashed #eee;
  }
  
  .filter-label {
      width: 80px;
      color: #666;
  }
  
  .filter-options {
      flex: 1;
      display: flex;
      flex-wrap: wrap;
  }
  
  .filter-option {
      margin-right: 15px;
      margin-bottom: 5px;
      color: #333;
      text-decoration: none;
  }
  
  .filter-option:hover,
  .filter-option.active {
      color: #ff6700;
  }
  
  /* 商品列表 */
  .product-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-bottom: 30px;
  }
  
  .product-card {
      background-color: #fff;
      border-radius: 4px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      transition: all 0.3s;
      overflow: hidden;
  }
  
  .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .product-image {
      position: relative;
      height: 280px;
      overflow: hidden;
  }
  
  .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s;
  }
  
  .product-card:hover .product-image img {
      transform: scale(1.05);
  }
  
  .discount-tag {
      position: absolute;
      top: 10px;
      right: 10px;
      background-color: #ff6700;
      color: #fff;
      padding: 3px 8px;
      border-radius: 3px;
      font-size: 12px;
  }
  
  .product-hover {
      position: absolute;
      bottom: -40px;
      left: 0;
      right: 0;
      background-color: rgba(0, 0, 0, 0.7);
      padding: 10px;
      transition: bottom 0.3s;
  }
  
  .product-card:hover .product-hover {
      bottom: 0;
  }
  
  .quick-view {
      width: 100%;
      background-color: #ff6700;
      color: #fff;
      border: none;
      padding: 5px 0;
      border-radius: 3px;
      cursor: pointer;
  }
  
  .product-info {
      padding: 15px;
  }
  
  .product-title {
      margin: 0 0 10px;
      font-size: 16px;
      font-weight: normal;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }
  
  .product-meta {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
      font-size: 12px;
      color: #999;
  }
  
  .product-price {
      margin-bottom: 15px;
  }
  
  .current-price {
      font-size: 18px;
      font-weight: bold;
      color: #ff6700;
      margin-right: 5px;
  }
  
  .original-price {
      font-size: 14px;
      color: #999;
      text-decoration: line-through;
  }
  
  .product-actions {
      display: flex;
      gap: 10px;
  }
  
  .add-to-cart,
  .add-to-wishlist {
      flex: 1;
      border: none;
      padding: 8px 0;
      border-radius: 3px;
      cursor: pointer;
      font-size: 12px;
  }
  
  .add-to-cart {
      background-color: #ff6700;
      color: #fff;
  }
  
  .add-to-wishlist {
      background-color: #f5f5f5;
      color: #666;
  }
  
  .add-to-cart:hover {
      background-color: #f25807;
  }
  
  .add-to-wishlist:hover {
      background-color: #e5e5e5;
  }
  
  /* 分页 */
  .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
  }
  
  .page-btn {
      width: 36px;
      height: 36px;  /* 修复未完成的高度属性 */
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 5px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background-color: #fff;
      color: #333;
      text-decoration: none;
      transition: all 0.3s;
  }
  
  .page-btn:hover,
  .page-btn.active {
      background-color: #ff6700;
      color: #fff;
      border-color: #ff6700;
  }
  
  .page-btn.disabled {
      color: #ccc;
      cursor: not-allowed;
  }
  
  .page-btn.disabled:hover {
      background-color: #fff;
      color: #ccc;
      border-color: #ddd;
  }
  
  /* 加载状态 */
  .loading-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 50px 0;
      width: 100%;
  }
  
  .loading-container .layui-icon {
      font-size: 40px;
      color: #ff6700;
      margin-bottom: 15px;
  }
  
  .loading-container p {
      color: #999;
  }
  
  /* 响应式布局 */
  @media (max-width: 1200px) {
      .product-grid {
          grid-template-columns: repeat(3, 1fr);
      }
  }
  
  @media (max-width: 992px) {
      .product-grid {
          grid-template-columns: repeat(2, 1fr);
      }
  }
  
  @media (max-width: 768px) {
      .catalog-content {
          flex-direction: column;
      }
      
      .catalog-sidebar {
          width: 100%;
          margin-right: 0;
          margin-bottom: 20px;
      }
      
      .product-grid {
          grid-template-columns: repeat(2, 1fr);
      }
  }
  
  @media (max-width: 576px) {
      .product-grid {
          grid-template-columns: 1fr;
      }
      
      .filter-item {
          flex-direction: column;
          align-items: flex-start;
      }
      
      .filter-label {
          width: 100%;
          margin-bottom: 10px;
      }
  }
body * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
}
body .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
body .breadcrumb {
  margin-bottom: 20px;
  font-size: 14px;
}
body .breadcrumb a {
  color: #666;
  text-decoration: none;
}
body .breadcrumb i {
  margin: 0 8px;
  color: #999;
}
body .breadcrumb span {
  color: #333;
}
body .catalog-content {
  display: flex;
  gap: 20px;
}
body .catalog-sidebar {
  width: 240px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
body .sidebar-title {
  padding: 15px;
  background: #1890ff;
  color: #fff;
  font-weight: bold;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
body .category-list {
  list-style: none;
}
body .category-item {
  border-bottom: 1px solid #f0f0f0;
}
body .category-item a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}
body .category-item.active a,
body .category-item a:hover {
  background: #e6f7ff;
  color: #1890ff;
}
body .category-item i {
  width: 20px;
  margin-right: 8px;
}
body .item-count {
  margin-left: auto;
  color: #999;
  font-size: 12px;
}
body .catalog-main {
  flex: 1;
}
body .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
body .product-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
body .product-card:hover {
  transform: translateY(-5px);
}
body .product-image {
  position: relative;
  padding-top: 100%;
}
body .product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 127%;
  object-fit: cover;
}
body .discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4d4f;
  color: #fff;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 12px;
}
body .product-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 128%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
body .product-card:hover .product-hover {
  opacity: 1;
}
body .quick-view {
  padding: 8px 15px;
  background: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
body .product-info {
  padding: 15px;
}
body .product-title {
  font-size: 14px;
  margin-bottom: -16px;
  margin-top: 50px;
  height: 40px;
  overflow: hidden;
}
body .product-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
body .product-price {
  margin-bottom: 10px;
}
body .current-price {
  color: #ff4d4f;
  font-size: 18px;
  font-weight: bold;
}
body .original-price {
  color: #999;
  text-decoration: line-through;
  margin-left: 5px;
  font-size: 14px;
}
body .product-actions {
  display: flex;
  gap: 10px;
}
body .add-to-cart {
  flex: 1;
  padding: 8px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
body .add-to-wishlist {
  width: 80px;
  background: #ff4d4f;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
}
body .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
body .page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
body .page-btn.active,
body .page-btn:hover:not(:disabled) {
  color: #1890ff;
  border-color: #1890ff;
}
body .page-btn:disabled {
  cursor: not-allowed;
  color: #d9d9d9;
}
body .page-dots {
  color: #999;
}
body .page-info {
  margin-left: 15px;
  color: #666;
  font-size: 14px;
}
body .page-size {
  padding: 4px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  margin-left: 8px;
}
@media screen and (max-width: 768px) {
  body .catalog-content {
    flex-direction: column;
  }
  body .catalog-sidebar {
    width: 100%;
  }
  body .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  body .filter-toolbar {
    flex-direction: column;
  }
  body .pagination {
    flex-wrap: wrap;
  }
}

}
/* 添加选中分类的样式 */
.category-active {
    background-color: #f2f2f2;
    color: #1E9FFF;
    font-weight: bold;
}

.category-active:before {
    content: '•';
    color: #1E9FFF;
    margin-right: 5px;
}

/* 鼠标悬停在分类上的样式 */
.layui-menu li:hover {
    background-color: #f8f8f8;
}